package com.redis.mapper;

import com.redis.entity.CityArea;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RedisGeoMapper {

    /**
    * @Description: 根据主键id查询信息
    * @date 2021/4/14 17:10
    */
    @Select("select * from t_area where areaId = #{areaId}")
    CityArea findById(@Param("areaId") Integer areaId);

    @Select("select * from t_area ")
    List<CityArea> findAll();
}
